package com.dbz.util;

import java.util.List;

public class ModuleTree {
   
	private int id; //节点Id
	

	public ModuleTree(int id, String text, boolean checked) {
		super();
		this.id = id;
		this.text = text;
		this.checked = checked;
	}

	private String text; //显示节点文本
	
	private String state; //节点状态，'open'或 'closed'，默认：'open'。如果为'closed'的时候，将不自动展开该节点
	
	private boolean checked; //表示该节点是否被选中
	
	private List<ModuleTree> children; //一个节点数组声明了若干节点
	
	private ModuleData attributes;//节点的自定义属性
	


	public ModuleTree(int id, String text) {
		super();
		this.id = id;
		this.text = text;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<ModuleTree> getChildren() {
		return children;
	}

	public void setChildren(List<ModuleTree> children) {
		this.children = children;
	}

	public ModuleData getAttributes() {
		return attributes;
	}

	public void setAttributes(ModuleData attributes) {
		this.attributes = attributes;
	}	
}
